---
layout: "default"
title: "_NSDictionaryCoreType"
description: "Swift documentation for '_NSDictionaryCoreType': A shadow for the &quot;core operations&quot; of NSDictionary."
keywords: "_NSDictionaryCoreType,protocol,swift,documentation,copyWithZone,countByEnumeratingWithState,getObjects,keyEnumerator,objectForKey,count"
root: "/v2.0"
---

<div class="intro-declaration"><code class="language-swift">protocol _NSDictionaryCoreType</code></div>

<div class="discussion comment">
    <p>A shadow for the &quot;core operations&quot; of NSDictionary.</p>

<p>Covers a set of operations everyone needs to implement in order to
be a useful <code>NSDictionary</code> subclass.</p>
</div>

<table class="standard">
<tr>
<th id="inheritance">Inheritance</th>
<td>
<code class="inherits">_NSCopyingType, _NSFastEnumerationType, _ShadowProtocol</code>
<span class="viz"><a href="hierarchy/">View Protocol Hierarchy &rarr;</a></span>
</td>
</tr>



<tr>
<th>Import</th>
<td><code class="language-swift">import Swift</code></td>
</tr>

</table>


<h3>Initializers</h3>
<div class="declaration" id="init-objects_forkeys_count_">
<a class="toggle-link" data-toggle="collapse" href="#comment-init-objects_forkeys_count_">init(<wbr>objects:<wbr>forKeys:<wbr>count:)</a> <span class="required">Required</span><div class="comment collapse" id="comment-init-objects_forkeys_count_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">init(objects: UnsafePointer&lt;AnyObject?&gt;, forKeys: UnsafePointer&lt;Void&gt;, count: Int)</code>

    </div></div>
</div>


<h3>Instance Variables</h3>
<div class="declaration" id="var-count_-int">
<a class="toggle-link" data-toggle="collapse" href="#comment-var-count_-int">var count: Int</a> <span class="required">Required</span><div class="comment collapse" id="comment-var-count_-int"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">var count: Int { get }</code>

    </div></div>
</div>



<h3>Instance Methods</h3>
<div class="declaration" id="func-copywithzone_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-copywithzone_">func copyWithZone(<wbr>_:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-copywithzone_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func copyWithZone(zone: _SwiftNSZone) -&gt; AnyObject</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/_NSDictionaryCoreType/"><code>_NSDictionaryCoreType</code></a>,    <a href="../../protocol/_NSCopyingType/"><code>_NSCopyingType</code></a>    
</div></div>
</div>
<div class="declaration" id="func-countbyenumeratingwithstate_objects_count_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-countbyenumeratingwithstate_objects_count_">func countByEnumeratingWithState(<wbr>_:<wbr>objects:<wbr>count:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-countbyenumeratingwithstate_objects_count_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func countByEnumeratingWithState(state: UnsafeMutablePointer&lt;_SwiftNSFastEnumerationState&gt;, objects: UnsafeMutablePointer&lt;AnyObject&gt;, count: Int) -&gt; Int</code>
    
        <h4>Declared In</h4>
        <a href="../../protocol/_NSDictionaryCoreType/"><code>_NSDictionaryCoreType</code></a>,    <a href="../../protocol/_NSFastEnumerationType/"><code>_NSFastEnumerationType</code></a>    
</div></div>
</div>
<div class="declaration" id="func-getobjects_andkeys_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-getobjects_andkeys_">func getObjects(<wbr>_:<wbr>andKeys:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-getobjects_andkeys_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func getObjects(objects: UnsafeMutablePointer&lt;AnyObject&gt;, andKeys keys: UnsafeMutablePointer&lt;AnyObject&gt;)</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-keyenumerator">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-keyenumerator">func keyEnumerator()</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-keyenumerator"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func keyEnumerator() -&gt; _NSEnumeratorType</code>
    
    
</div></div>
</div>
<div class="declaration" id="func-objectforkey_">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-objectforkey_">func objectForKey(<wbr>_:)</a>
     <span class="required">Required</span>    
<div class="comment collapse" id="comment-func-objectforkey_"><div class="p">
    

    <h4>Declaration</h4>    
    <code class="language-swift">func objectForKey(aKey: AnyObject) -&gt; AnyObject?</code>
    
    
</div></div>
</div>


